<?php echo $header;
echo $sidebar
?>	
<style>
.input-icon.input-icon-right>[class*="icon-"] {
	left: auto;
	right: 3px;
}
.input-icon{ position:relative;}
input-icon.input-icon-right>input, .input-icon.input-icon-right>input {
	padding-left: 6px;
	padding-right: 24px;
}
.input-icon>[class*="icon-"] {
		padding: 0 3px;
		z-index: 2;
		position: absolute;
		top: 1px;
		bottom: 1px;
		left: 3px;
		line-height: 28px;
		display: inline-block;
		color: #909090;
		font-size: 16px; 
}
</style>
<div class="span10 content">
    <?php echo $hugemenu ?>

    <?php if ($this->session->flashdata('message')) { ?>
        <div class="alert alert-success">
            <?php echo $this->session->flashdata('message') ?>
        </div>
    <?php } ?>

<form class="form-horizontal" action="<?php echo site_url()?>/news/update_sub" method="post">
	<?php
				if (!empty($sub_details)) { ?>
				<?php
				foreach ($sub_details as $key => $sub) { ?>
					<input type="hidden" name="sub_id" value="<?php echo $sub['sub_id']?>" />
<div class="control-group">
			<label class="control-label" for="form-field-1">Subscriber Name</label>
			<div class="controls">
				<span class="span6 input-icon input-icon-right">
											<input type="text" name="sub_name" required="required" id="form-field-1" class="span12" value="<?php echo $sub['sub_name']?>" >
											<i class="icon-user blue"></i>
										</span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="form-field-1">Subscriber Email</label>
			<div class="controls">
				<span class="span6 input-icon input-icon-right">
											<input type="email" name="sub_email" required="required" id="form-field-1" class="span12" value="<?php echo $sub['sub_email']?>" >
											<i class="icon-envelope blue"></i>
										</span>
										<span class="help-button ace-popover" data-trigger="hover" data-placement="left" data-content="you@yourdomain.com" title="" data-original-title="Example"></span>
			</div>
		</div>
		
		<div class="form-actions">
			<button class="btn btn-info" type="submit"><i class="icon-ok"></i> Submit</button>
			&nbsp; &nbsp; &nbsp;
			<button class="btn" type="reset"><i class="icon-undo"></i>Reset</button>			
		</div>
		
	<?php
				}
				?>
				
				<?php }else{
					
				}
				?>
	 </form>
	 <a style="color:#fff;" href='<?=site_url()?>/news/subscribers'>
	 <button class="btn btn-medium btn-danger">			
				<i class="icon icon-double-angle-left"></i> Subscribers</button>
				</a>
                
   </div><!--/content-->

<?php echo $footer ?>